package com.cloud.service;

import com.cloud.config.FeignConfig;
import com.cloud.tools.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 14:39 2022/4/18
 * @Description:
 * @ClassName:
 */
@Component
@FeignClient(value = "apply-management-provider", configuration = FeignConfig.class)
public interface ApplyVolunteerService {

    @PostMapping(value = "/apply/volunteer/create")
    CommonResult create(Map<String,Object> map);

    @PostMapping(value = "/apply/volunteer/delete")
    CommonResult delete(Map<String,Object> map);

    @GetMapping(value = "/apply/volunteer/retrieve")
    CommonResult userRetrieve();

    @PostMapping(value = "/apply/volunteer/update")
    CommonResult userUpdate(Map<String,Object> map);

    @GetMapping(value = "/approval/volunteerApply/retrieve")
    CommonResult approvalRetrieve();

    @PostMapping(value = "/approval/volunteerApply/handle")
    CommonResult approvalUpdate(Map<String,Object> map);
}
